﻿<UserControl x:Class="UploadingControl.NewsDetailPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ScrollViewer.HorizontalScrollBarVisibility="Visible"
    mc:Ignorable="d" 
     d:DesignWidth="550" xmlns:my="clr-namespace:UploadingControl" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">
    <UserControl.Resources>
        <DataTemplate x:Key="CompetencyLevelTemplate">
            <HyperlinkButton Content="{Binding Path=Description}" Tag="{Binding Path=LookUpID}" Height="23" Click="hyperlinkButton1_Click"  Name="hyperlinkButton1" Width="100" />
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" Width="550" >
        <StackPanel HorizontalAlignment="Left" Name="stackPanel1" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" >
            <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Visible"  Width="120" Height="650"  >
                <ListBox VerticalAlignment="Top" x:Name="lstMenu" Width="120" ItemsSource="{Binding Path=lstLookUp}" ItemTemplate="{StaticResource CompetencyLevelTemplate}">
                </ListBox>
            </ScrollViewer>
        </StackPanel>
        <StackPanel HorizontalAlignment="Left" Margin="125,12,0,0" Name="stackPanel2" VerticalAlignment="Top" Orientation="Vertical">

            <StackPanel Orientation="Horizontal" Margin="0,10,0,0" Height="38">
                <TextBlock Text="Select date" Width="70" VerticalAlignment="Center" Visibility="Collapsed"></TextBlock>

                <ComboBox Width="100" Margin="0,5" x:Name="YearComboBox" Visibility="Collapsed">
                    <ComboBoxItem Content="Select Year" Tag="0" IsSelected="True"></ComboBoxItem>
                    <ComboBoxItem Content="2012" Tag="2012"></ComboBoxItem>
                    <ComboBoxItem Content="2013" Tag="2013"></ComboBoxItem>
                    <ComboBoxItem Content="2014" Tag="2014"></ComboBoxItem>
                    <ComboBoxItem Content="2015" Tag="2015"></ComboBoxItem>
                    <ComboBoxItem Content="2016" Tag="2016"></ComboBoxItem>
                    <ComboBoxItem Content="2017" Tag="2017"></ComboBoxItem>
                    <ComboBoxItem Content="2018" Tag="2018"></ComboBoxItem>
                    <ComboBoxItem Content="2019" Tag="2019"></ComboBoxItem>
                    <ComboBoxItem Content="2020" Tag="2020"></ComboBoxItem>
                </ComboBox>
                <ComboBox Width="105" Margin="5" x:Name="MonthComboBox"  Visibility="Collapsed">
                    <ComboBoxItem Content="Select Month" Tag="0" IsSelected="True"></ComboBoxItem>
                    <ComboBoxItem Content="January" Tag="01"></ComboBoxItem>
                    <ComboBoxItem Content="February" Tag="02"></ComboBoxItem>
                    <ComboBoxItem Content="March" Tag="03"></ComboBoxItem>
                    <ComboBoxItem Content="April" Tag="04"></ComboBoxItem>
                    <ComboBoxItem Content="May" Tag="05"></ComboBoxItem>
                    <ComboBoxItem Content="June" Tag="06"></ComboBoxItem>
                    <ComboBoxItem Content="July" Tag="07"></ComboBoxItem>
                    <ComboBoxItem Content="August" Tag="08"></ComboBoxItem>
                    <ComboBoxItem Content="September" Tag="09"></ComboBoxItem>
                    <ComboBoxItem Content="October" Tag="10"></ComboBoxItem>
                    <ComboBoxItem Content="November" Tag="11"></ComboBoxItem>
                    <ComboBoxItem Content="December"  Tag="12"></ComboBoxItem>
                </ComboBox>
                <ComboBox Width="120" Margin="5" x:Name="MagNoComboBox" Visibility="Collapsed">
                    <ComboBoxItem Content="Select Magazine" Tag="0" IsSelected="True"></ComboBoxItem>
                    <ComboBoxItem Content="Magazine 1" Tag="mag-01" ></ComboBoxItem>
                    <ComboBoxItem Content="Magazine 2" Tag="mag-02"></ComboBoxItem>
                </ComboBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,10,0,10">
                <TextBlock Text="From date" Width="70" VerticalAlignment="Center"></TextBlock>
                <controls:DatePicker Name="datePicker1" IsEnabled="True" Height="24" Width="115" SelectedDateChanged="datePicker1_SelectedDateChanged" />
                <TextBlock Text="    To date  " Width="70" VerticalAlignment="Center"></TextBlock>
                <controls:DatePicker IsEnabled="True" Name="datePicker2" Height="24" Width="115" SelectedDateChanged="datePicker1_SelectedDateChanged" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,0,0,10" Height="38">
                <TextBlock Text="Theme" Width="70" VerticalAlignment="Center"></TextBlock>
                <ComboBox Width="200" Margin="0,5" x:Name="ThemeComboBox" Tag="{Binding Path=Id}"  DisplayMemberPath="Name">
                </ComboBox>
            </StackPanel>

            <StackPanel  Name="stackPanel4" Orientation="Horizontal"  Width="320">
                <my:FileUpload Height="100" x:Name="fileLog" Width="320" Visibility="Visible" />
            </StackPanel>
            <StackPanel  Name="stackPanel5" Orientation="Horizontal" Width="320" VerticalAlignment="Top">
                <my:FileUpload Height="100" x:Name="fileHeader" Width="320"  />
            </StackPanel>
            <StackPanel  Name="stackPanel50" Orientation="Horizontal" Width="320" VerticalAlignment="Top">
                <my:FileUpload Height="100" x:Name="fileFarman" Width="320" Visibility="Visible" />
            </StackPanel>

        </StackPanel>

        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="264,374,0,0" Name="button4" VerticalAlignment="Top" Width="75" d:LayoutOverrides="HorizontalAlignment" Click="button4_Click" />
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="345,374,0,0" Name="button5" VerticalAlignment="Top" Width="75" d:LayoutOverrides="HorizontalAlignment" Click="button5_Click" />
    </Grid>
</UserControl>
